<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="<?php echo ConfigHelper::getInstance()->getConfig()['globalEncoding']; ?>"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="csrf-param" content="<?php echo CsrfHelper::getInstance()->getCsrfTokenName() ?>">
    <meta name="csrf-token" content="<?php echo CsrfHelper::getInstance()->getCsrfToken() ?>">

    <title><?php echo CommonHelper::_h($title) ?></title>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link rel="stylesheet" href="/assets/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
    <script type="text/javascript" src="/assets/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

    <link rel="stylesheet" href="/css/index.css">
    <?php echo $scripts['css'] ?>

</head>
<body>

<script type="text/javascript">
<?php
    if (!empty($_GET['debug']))
    {
        echo "var globalDebug = true;\n";
    }
?>
</script>

<div class="container">
<?php echo $content ?>
</div>

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<script src="/js/helper.js"></script>
<?php echo $scripts['js'] ?>

</body>
</html>
